package com.tlxch.server.student.impl;

import com.tlxch.mapper.SHabitMapper;
import com.tlxch.pojo.SHabit;
import com.tlxch.server.student.StuSHabitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuSHabitServiceImpl implements StuSHabitService {
    @Autowired
    SHabitMapper sHabitMapper;

    public void addStuSHabit(SHabit sHabit) {
        sHabitMapper.insertSelective(sHabit);
    }

    public List<SHabit> getBySid(String sSid) {
        return sHabitMapper.getBySid(sSid);
    }
}
